package com.shujia.homework.exer2;

public class CarTest {

    public static void main(String[] args) {
        Car car = new Car();
        car.start();
        car.stop();

        Car familyCar = new FamilyCar("张三");
        familyCar.start();
        familyCar.stop();

        Car taxiCar = new TaxiCar("张三");
        taxiCar.setCarNo("皖A6688");
        taxiCar.start();
        taxiCar.stop();
    }
}
